<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ page language="java" import="com.jxLC.Action.*"%>
<%@ page language="java" import="com.jxLC.Model.*" %>
<%@ page language="java" import="com.jxLC.Service.*" %>
<%@include file="/checkuLoginSession.jsp" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
User u=(User)session.getAttribute("us");
%>

<%@ taglib prefix="s" uri="/struts-tags"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
    <title>:::江西低碳-企业用户平台:::</title>
	<link href="/mycss/my.css"  rel="stylesheet" type="text/css" />
	<link href="/mycss/details.css"  rel="stylesheet" type="text/css" />
	<script type="text/javascript" charset="utf-8" src="kindeditor/kindeditor.js"></script>
	<script type="text/javascript" src="/myjs/my.js"></script>
	<style type="text/css">
	 table,td,th{ font-size:14px； font-family: "宋体 "; border:1px solid #339966;border-collapse:collapse; }
	 .tcolumn1{background:#EBFCF3;font-size:14px;font-weight:bold}
	 .tcolumn2{font-size:14px;color:green}
	 #m{background-color:white}
	 #ma{height:30px; background-image:url(/my.photo/photo/h3.jpg); color:white;padding-top:5px;}
	 #mb{float: left; width:240px;height:100%; background-color: ; margin:3px;}
	 #mb2{height:30px;background-color:#339966;width:220px; color:white; padding:4px;margin-top:2px;font-weight: bold; }
	 #mb3 a{ text-decoration: none; color:#006699;font-size:14px; font-weight: bold;}
	 #mb3 a:hover{color:green}
	 #mc{float: left;}
	 #mc1{height:10px;background-color: #339966; width:98%;padding-left:4px;margin-top:4px;overflow:hidden;}
	 #mc2{padding-left:10px;margin-top:30px;border-bottom:1px dashed green;width:98%;}
	 #mc3{margin-left:220px;margin-bottom:20px;margin-top:50px;}
	 #mc4{margin-top:20px;}
	 #mc5{margin-top:40px;}
	 table a{text-decoration: none;font-size:14px;color:blue}
	 table a:hover{ color:red }  
	 table{ font-size:18px;font-family:"宋";}
    </style>
    <script type="text/javascript">
    function checkForm(myform){
      if(myform.Passwd.value==""){
       alert('原始密码不能为空');
       myform.Passwd.focus();
       return false;
      }
     if(myform.Passwd.value!=="<%=u.getCPasswd()%>"){
       alert('原密码输入错误！请重新输入');
       myform.Passwd.focus();
       return false;
      }
      if(myform.CPasswd1.value==""){
       alert('新密码输入不能为空！请输入');
       myform.CPasswd1.focus();
       return false;
      }
      if(myform.CPasswd.value==""){
       alert('新密码输入不能为空！请输入');
       myform.CPasswd.focus();
       return false;
      }
      if(myform.CPasswd.value!==myform.CPasswd1.value){
       alert('新密码输入不一致！请重新输入');
       myform.CPasswd.focus();
       return false;
      }
         return true;
    }
    
    
     window.onload=function()
   { 
        var result ="<%=request.getAttribute("mdsuccess")%>";
        if(result!='null'  &&  result!=undefined)
      {
             alert(result);
       }  
   }
	</script>
  </head>
  
 <body style="background-color:#EBFCF3">
   <s:include value="/admin/header.jsp"></s:include>
	<center><div id="m" >
       <div id="ma">
         <marquee direction="left" behavior="scroll" loop="0" onMouseOut="this.start()" onMouseOver="this.stop()" scrollamount="4" scrolldelay="4" >
		    这里是江西国际低碳与生态技术交流合作中心！欢迎进入企业用户管理平台
		</marquee>
       </div>
       <div id="mb">	
          <div id="mb1"><img src="/my.photo/photo/g.jpg"></div>
          <div id="mb2"><p align="left">===》》企业用户平台</p></div>
          <div id="mb3">
		    <table style="height:200px; width:220px; border:1px">
		     <tr><td id="u"><img src="/my.photo/photo/list.gif" />&nbsp;&nbsp;<a href="check.jsp?Cnum=<%=u.getCnum()%>"> 查看个人信息</a></td></tr>
		     <tr><td><img src="/my.photo/photo/list.gif" />&nbsp;&nbsp;<a href="modifypasswd.jsp"> 修改登录密码</a></td></tr>
		     <tr><td><img src="/my.photo/photo/list.gif" />&nbsp;&nbsp;<a href="upfile.jsp"> 在线上传文件</a></td></tr>
		     <tr><td><img src="/my.photo/photo/list.gif" />&nbsp;&nbsp;<a href="myfile.jsp"> 我的文件</a></td></tr>
		    </table>
		  </div>
		</div>
       <div id="mc">
          <div id="mc1"></div>
          <div id="mc2">
           <h4 align="left"><img  src="/my.photo/photo/to.gif"><font style="color:black;font-family: 仿宋 ;font-weight: bold;">当前用户：</font><font style="color:blue;font-family: 仿宋 ;font-weight: bold;">企业用户</font></h4>
           <h4 align="left"><img  src="/my.photo/photo/to.gif"><font style="color:black;font-family: 仿宋 ;font-weight: bold;">当前位置：</font><font style="color:blue;font-family: 仿宋 ;font-weight: bold;">修改密码</font></h4>
          </div>
          <div id="mc5"><font style="font-size:16px; font-weight:bold">**修改用户登录密码**</font></div>
          <div id="mc4">
          <form action="mpasswd" method="post" onsubmit="return checkForm(this);">
           <table width="600" height="160">
             
             <tr><td class="tcolumn1" align="center">请输入原始密码</td><td class="tcolumn2" align="center"><input type="password" name="Passwd" style="height:25px;width:200px; padding-top:4px;"/></td></tr>
             <tr><td class="tcolumn1" align="center">请输入新的密码</td><td class="tcolumn2" align="center"><input type="password" name="CPasswd1" style="height:25px;width:200px; padding-top:4px;"/></td></tr>
             <tr><td class="tcolumn1" align="center">再次输入的密码</td><td class="tcolumn2" align="center"><input type="password" name="CPasswd" style="height:25px;width:200px; padding-top:4px;"/></td></tr>
             <tr ><td class="tcolumn1" align="center" height="60px" colspan="2">
                  <input type="hidden" name="Cnum" value="<%=u.getCnum()%>" />
                  <input type="submit" value="提交" style="height:30px;width:100px; padding-top:4px;"/>
                  <input type="reset" value="清除" style="height:30px;width:100px; padding-top:4px;"/>
                  </td>
             </tr>
           </table>
           </form>
          </div>
       </div>
	</div></center>
	<s:include value="/admin/tail.jsp"></s:include>
</body>
</html>
